//
//  XJ_ApplicationView.m
//  XunJieProject
//
//  Created by xue on 2018/6/8.
//  Copyright © 2018年 Soowin. All rights reserved.
//

#import "XJ_ApplicationView.h"

@implementation XJ_ApplicationView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor =WhiteColor;
        CGFloat wide =CGRectGetWidth(self.frame);
        CGFloat height = CGRectGetHeight(self.frame);
        self.iconImage =[[UIImageView alloc]initWithFrame:CGRectMake((wide - 30)/2, 20, 30, 30)];
        self.iconImage.contentMode =UIViewContentModeScaleAspectFit;
        self.iconImage.backgroundColor =ClearColor;
        [self addSubview:self.iconImage];
        
        
        
        self.titleLabel =[[UILabel alloc]initWithFrame:CGRectMake(10, CGRectGetMaxY(_iconImage.frame)+14, wide-18, 21)];
        self.titleLabel.backgroundColor =ClearColor;
        self.titleLabel.font =[UIFont systemFontOfSize:14.0];
        self.titleLabel.textColor =RGBCOLOR(175, 176, 178);
        self.titleLabel.textAlignment =NSTextAlignmentCenter;
        [self addSubview:self.titleLabel];
        
        _leftLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 0.8, height)];
        _leftLabel.backgroundColor = Color_Line;
        [self addSubview:_leftLabel];
        
        _rightLabel = [[UILabel alloc]initWithFrame:CGRectMake(wide - 0.8, 0, 0.8, height)];
        _rightLabel.backgroundColor = Color_Line;
        [self addSubview:_rightLabel];
        
        _topLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, wide, 0.8)];
        _topLabel.backgroundColor = Color_Line;
        [self addSubview:_topLabel];
        
        _bottomLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, height - 0.8, wide, 0.8)];
        _bottomLabel.backgroundColor = Color_Line;
        [self addSubview:_bottomLabel];
    }
    return self;
}

@end
